package msg.visitors;

import msg.*;

import common.interfaces.IMessageVisitor;

/**
 * Check if a given message is an actual message or an event.<br>
 * Returns <code>true</code> for {@link EventMessage} and <code>false</code> for {@link Message}
 * 
 * @author Gal Lalouche
 */
public class EventCataloguer implements IMessageVisitor<Boolean> {
	
	@Override
	public Boolean visit(Message message) {
		return false;
	}
	
	@Override
	public Boolean visit(EventMessage event) {
		return true;
	}
}
